<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>3. Data Types</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="ODTONE 0.3">
<link rel="up" href="../index_base.html" title="ODTONE Base">
<link rel="prev" href="base_classes.html" title="2. Mechanisms">
<link rel="next" href="../index_mih.html" title="ODTONE MIH">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="'ODTONE - Open Dot Twenty One'" width="100" height="100" src="../../.././images/logo.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="base_classes.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index_base.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="../index_mih.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" title="3. Data Types">
<div class="titlepage"><div><div><h4 class="title">
<a name="odtone.library.index_base.base_datatypes"></a><a class="link" href="base_datatypes.html" title="3. Data Types"> 3. Data
        Types</a>
</h4></div></div></div>
<div class="table">
<a name="odtone.library.index_base.base_datatypes.base_data_types"></a><p class="title"><b>Table&#160;5.&#160;Base data types</b></p>
<div class="table-contents"><table class="table" summary="Base data types">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
              <p>
                Data type
              </p>
              </th>
<th>
              <p>
                Data type (ODTONE)
              </p>
              </th>
</tr></thead>
<tbody>
<tr>
<td>
              <p>
                signed char
              </p>
              </td>
<td>
              <p>
                odtone::schar
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                signed short
              </p>
              </td>
<td>
              <p>
                odtone::sshort
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                signed int
              </p>
              </td>
<td>
              <p>
                odtone::sint
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                signed long
              </p>
              </td>
<td>
              <p>
                odtone::slong
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                signed long long
              </p>
              </td>
<td>
              <p>
                odtone::sllong
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                unsigned char
              </p>
              </td>
<td>
              <p>
                odtone::uchar
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                unsigned short
              </p>
              </td>
<td>
              <p>
                odtone::ushort
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                unsigned int
              </p>
              </td>
<td>
              <p>
                odtone::uint
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                unsigned long
              </p>
              </td>
<td>
              <p>
                odtone::ulong
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                unsigned long long
              </p>
              </td>
<td>
              <p>
                odtone::ullong
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::uint8_t
              </p>
              </td>
<td>
              <p>
                odtone::uint8
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::uint16_t
              </p>
              </td>
<td>
              <p>
                odtone::uint16
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::uint32_t
              </p>
              </td>
<td>
              <p>
                odtone::uint32
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::uint64_t
              </p>
              </td>
<td>
              <p>
                odtone::uint64
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::int8_t
              </p>
              </td>
<td>
              <p>
                odtone::uint8
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::int16_t
              </p>
              </td>
<td>
              <p>
                odtone::uint16
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::int32_t
              </p>
              </td>
<td>
              <p>
                odtone::uint32
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::int64_t
              </p>
              </td>
<td>
              <p>
                odtone::uint64
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::intmax_t
              </p>
              </td>
<td>
              <p>
                odtone::sintmax
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                boost::uintmax_t
              </p>
              </td>
<td>
              <p>
                odtone::uintmax
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                NULL pointer
              </p>
              </td>
<td>
              <p>
                odtone::nullptr_t
              </p>
              </td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="section" title="Enumeration">
<div class="titlepage"><div><div><h5 class="title">
<a name="odtone.library.index_base.base_datatypes.enumeration"></a><a class="link" href="base_datatypes.html#odtone.library.index_base.base_datatypes.enumeration" title="Enumeration">Enumeration</a>
</h5></div></div></div>
<p>
            
</p>
<pre class="programlisting"><span class="keyword">enum</span> <span class="identifier">bug</span> <span class="special">{</span>
	<span class="identifier">bug_on</span><span class="special">,</span>
	<span class="identifier">bug_assert</span><span class="special">,</span>
	<span class="identifier">bug_assert_ptr</span><span class="special">,</span>
	<span class="identifier">bug_not_implemented</span><span class="special">,</span>
	<span class="identifier">bug_never_here</span><span class="special">,</span>
	<span class="identifier">bug_floting_point_exception</span><span class="special">,</span>
	<span class="identifier">bug_invalid_opcode</span><span class="special">,</span>
	<span class="identifier">bug_terminal_interrupt</span><span class="special">,</span>
	<span class="identifier">bug_page_fault</span><span class="special">,</span>
	<span class="identifier">bug_breakpoint</span><span class="special">,</span>
<span class="special">};</span>
</pre>
<p>
          </p>
</div>
<div class="section" title="Exception">
<div class="titlepage"><div><div><h5 class="title">
<a name="odtone.library.index_base.base_datatypes.exception"></a><a class="link" href="base_datatypes.html#odtone.library.index_base.base_datatypes.exception" title="Exception">Exception</a>
</h5></div></div></div>
<p>
            <span class="inlinemediaobject"><img src="./../../../images/odtone::exception1.png" alt="odtone::exception1"></span>
          </p>
<p>
            
</p>
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">bad_cast</span> <span class="special">:</span> <span class="keyword">virtual</span> <span class="keyword">public</span> <span class="identifier">exception</span> <span class="special">{</span>
<span class="special">};</span>
</pre>
<p>
          </p>
<p>
            
</p>
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">bad_truncate_cast</span> <span class="special">:</span> <span class="keyword">virtual</span> <span class="keyword">public</span> <span class="identifier">bad_cast</span> <span class="special">{</span>
	<span class="identifier">bad_truncate_cast</span><span class="special">()</span> <span class="special">:</span> <span class="identifier">exception</span><span class="special">(</span><span class="string">"odtone::truncate_cast: bad cast"</span><span class="special">)</span>
	<span class="special">{</span> <span class="special">}</span>
<span class="special">};</span>
</pre>
<p>
          </p>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2009 -2011 Universidade Aveiro<br>Copyright &#169; 2009 -2011 Instituto de Telecomunica&#231;&#245;es - P&#243;lo Aveiro<p>
        This software is distributed under a license. The full license agreement
        can be found in the LICENSE in this distribution. This software may not be
        copied, modified, sold or distributed other than expressed in the named license
        agreement. This software is distributed without any warranty.
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="base_classes.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index_base.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="../index_mih.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>
